<?php
namespace app\model;

class UserMsg extends Base {
    protected $resultSetType = 'collection';
    public static $TYPE_MAP = ['1' => '系统消息','2'=> '用户消息'];
    public static $READ_MAP = ['1' => '已读','2'=> '未读'];


    public function getaddTimeAttr($value) {
        return $value ? date("Y-m-d H:i:s", $value) : '';
    }
}
